home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / command < prev    next >
Text File  |  2001-04-06  |  1KB  |  30 lines

  1. SYNOPSIS
  2.         int command(string str)
  3.         int command(string str, object ob)
  4.  
  5. DESCRIPTION
  6.         Execute str as a command given directly by the user. Any
  7.         effects of the command will apply to the current object,
  8.         or to the given <ob>ject.
  9.         
  10.         Return value is 0 for failure. Otherwise a numeric value is
  11.         returned which tells the evaluation cost. Bigger number means
  12.         higher cost.  The evaluation cost is approximately the number
  13.         of LPC machine code instructions executed.
  14.  
  15.         If command() is called on another object, it is not possible
  16.         to call static functions in this way, to give some protection
  17.         against illegal forces.
  18.  
  19.         Commands are stacked, meaning that after the given command <str>
  20.         has finished, the old settings of this_player(), query_verb()
  21.         etc, are restored.
  22.  
  23. HISTORY
  24.         Up to 3.2.6 in native mode, commands could be applied to the current
  25.         object only.
  26.         Since 3.2.7, commands are stacked.
  27.  
  28. SEE ALSO
  29.         command_stack(E), notify_fail(E), enable_commands(E), get_eval_cost(E)
  30.